package org.springframework.my;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author yuanxp
 * @Date 2021/4/23 9:25
 */
public class CarFactoryBean implements FactoryBean<Car> {
	@Override
	public Car getObject() throws Exception {
		Car car = new Car();
		car.setBrand("factory bean: bwm");
		return car;
	}

	@Override
	public Class<?> getObjectType() {
		return Car.class;
	}
}
